import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
import FirstOne from "@/views/FirstOne.vue";
import ClassTwo from "@/views/ClassTwo.vue";
import OrderThree from "@/views/OrderThree.vue";
import MyFrou from "@/views/MyFrou.vue";
// 嵌套作业
import NestingFirst from "@/views/NestingFirst.vue";
import NestingNew from "@/views/NestingNew.vue";
import NestingSports from "@/views/NestingSports.vue";
import NestingOne from "@/views/NestingOne.vue";
import NestingTwo from "@/views/NestingTwo.vue";
import NestingThree from "@/views/NestingThree.vue";
const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    { path: "/firstone", component: FirstOne },
    { path: "/classtwo", component: ClassTwo },
    { path: "/orderthree", component: OrderThree },
    { path: "/myfrou", component: MyFrou },
    // 嵌套作业
    { path: "/nestingfirst", component: NestingFirst },
    { path: "/nestingnew", component: NestingNew },
      {
          path: "/nestingsports",
          component: NestingSports,
          children: [
              { path: 'nestingone', component: NestingOne },
              { path: 'nestingtwo', component: NestingTwo },
              { path: 'nestingthree', component: NestingThree }
            ]
      },
  ],
});
export default router;
